import 'package:flutter/material.dart';
import 'package:flutter02/pages/my_home_page.dart';

void main() {
  runApp(MaterialApp(
    theme: ThemeData(primarySwatch: Colors.red),
    home: Scaffold(
        appBar: AppBar(
          title: const Center(
            child: Text(
              '你好，Flutter',
              style: TextStyle(color: Colors.white),
            ),
          ),
          backgroundColor: Colors.red,
        ),
        body: MyHomePage()),
  ));
}
